package com.txf.simple.tools;

import android.util.Log;

public class Logger {
    private static int LOG = 5;
    private static int LOG_A = 1;
    private static int LOG_B = 2;
    private static int LOG_C = 3;
    private static int LOG_LONG = 4;
    private static String TAG = getTag();

    public static void d(String paramString) {
        d(TAG, paramString);
    }

    public static void d(String paramString1, String paramString2) {
        if (LOG_C < LOG)
            Log.d(paramString1, paramString2);
    }

    public static void e(String paramString) {
        e(TAG, paramString);
    }

    public static void e(String paramString1, String paramString2) {
        if (LOG_B < LOG)
            Log.e(paramString1, paramString2);
    }

    public static String getTag() {
        return "com.txf";
    }

    public static void i(String paramString) {
        i(TAG, paramString);
    }

    public static void i(String paramString1, String paramString2) {
        if (LOG_A < LOG)
            Log.i(paramString1, paramString2);
    }

    public static void iLong(String paramString) {
        iLong(TAG, paramString);
    }

    public static void iLong(String paramString1, String paramString2) {
        if (LOG_LONG < LOG) {
            int i = paramString2.length();
            int j = 0;
            int k = 2000;
            int m = 0;
            while (m < 100)
                if (i > k) {
                    i(paramString1, paramString2.substring(j, k));
                    j = k;
                    k += 2000;
                    m++;
                } else {
                    i(paramString1, paramString2.substring(j, i));
                }
        }
    }
}